<template>
  <section class="hero">
    <div class="container">
      <div class="content">
        <h1>Welcome to <span>XiusCraft</span></h1>
        <p>The next-generation Minecraft experience</p>
        <div class="buttons">
          <button class="primary">Join Server</button>
          <button class="secondary">Watch Trailer</button>
        </div>
      </div>
      <div class="hero-image">
        <img src="@/assets/diamond_pickaxe.png" alt="Minecraft Scene">
        <div class="glow-effect"></div>
      </div>
    </div>
  </section>
</template>

<style scoped>
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 60px;
}

.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.content {
  max-width: 50%;
  flex-shrink: 0;
}

.content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.content h1 span {
  background: linear-gradient(90deg, #44aaff, #8844ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #aaa;
}

.buttons {
  display: flex;
  gap: 1rem;
}

button {
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

button.primary {
  background: linear-gradient(90deg, #44aaff, #8844ff);
  color: #0a0a0a;
  border: none;
}

button.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(68, 170, 255, 0.3);
}

button.secondary {
  background: transparent;
  color: #44aaff;
  border: 1px solid #44aaff;
}

button.secondary:hover {
  background: rgba(68, 170, 255, 0.1);
}

.hero-image {
  position: relative;
}

.hero-image img {
  max-height: 500px;
  animation: float 6s ease-in-out infinite;
}

.glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(68, 170, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-image {
    margin-top: 3rem;
  }
}
</style>